<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 4/13/17
 * Time: 12:53 PM
 */

namespace common\models;

/**
 * Class BankBackSendLog
 * @package common\models
 *
 * @property CreditOrderLog $creditOrderLog
 */
class BankBackSendLog extends \common\models\base\BankBackSendLog
{
    const BACK_CAN_RESEND = '099';
    const BACK_SUCCESS = '001';

    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'for_serial_number' => '征信序列号',
            'request_route' => '请求路由',
            'time' => 'Time',
            'request_data' => '请求内容',
            'check_error_data' => '校验错误信息',
        ];
    }

	/**
	 * @return \yii\db\ActiveQuery
	 */
	public function getCreditOrderLog()
	{
		return $this->hasOne(CreditOrderLog::className(), ['serial_number'=>'for_serial_number']);
	}
}